package com.cslc.mp.dao.proxy;

import com.cslc.mp.dao.DatabaseConnection;
import com.cslc.mp.dao.DAO.IFaultDAO;
import com.cslc.mp.dao.impl.FaultDAOImpl;
import com.cslc.mp.dao.vo.Fault;

public class FaultDAOProxy implements IFaultDAO{
	private DatabaseConnection dbc;
	private IFaultDAO dao = null;
	public FaultDAOProxy() throws Exception {
		dbc = new DatabaseConnection();
		dao = new FaultDAOImpl(dbc.getConnection());
	}
	@Override
	public boolean doCreate(Fault fault) throws Exception {
		return dao.doCreate(fault);
	}

}
